package com.leo.ibatis.demo.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.leo.ibatis.demo.criteria.ItemCriteria;
import com.leo.ibatis.demo.domain.Item;

public interface ItemDao {

	void insert(Item item) throws DataAccessException;

	int update(Item item) throws DataAccessException;

	int delete(String itemid) throws DataAccessException;

	Item select(String itemid) throws DataAccessException;

	List<Item> list(ItemCriteria itemCriteria) throws DataAccessException;
	
	List<Item> listOnPage(ItemCriteria itemCriteria) throws DataAccessException;
	
	int count(ItemCriteria itemCriteria) throws DataAccessException;

}
